﻿namespace Utilities
{
    public static class StringExtensions
    {
        public static string Truncate(this string s, int length)
        {
            return null == s ? null : s.Length > length ? s.Substring(0, length) : s;
        }
    }
}